package com.three.productList.feign;

import com.three.core.entity.StoreEvaluate;
import com.three.core.vo.R;
import com.three.productList.vo.StoreRatVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author ：li
 * @date ：Created in 2025/3/11 011 16:33
 * @description：
 * @modified By：
 * @version:
 */
@FeignClient(value = "car-wash-storemanage",fallbackFactory = StoreFallbackFactory.class)
public interface StoreFeign {
    //查询店铺信息
//    @GetMapping("/store/feign/selectStoreByUserId")
//    public R selectStoreByUserId();

    //查询店铺的收藏数和评分
    // collectPeople: 0,//收藏人数
    // rating: '',
    @PostMapping("/store/evaluate/selectEvaluateByStoreName")
    public R<StoreRatVo> selectEvaluateByStoreName(@RequestParam String storeName);

}
